
package com.qingcheng.controller;

import com.qingcheng.entity.Result;
import com.qingcheng.service.OrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RequestMapping("/orderItem")
@RestController
public class OrderItemController {

    @Autowired
    private OrderItemService orderItemService;

    @PostMapping("/findList")
    public Result findList(@RequestBody Map<String,Object> searchMap){
        return new Result(200,"查询成功",orderItemService.findList(searchMap));
    }

    @GetMapping("/findOrderItemByOrderId")
    public Result findOrderItemByOrderId(String orderId){
        return new Result(200,"查询成功",orderItemService.findOrderItemByOrderId(orderId));
    }

}
